<script language="JavaScript" type="text/javascript">
<!--
function submit()
{
  document.upload-form.submit() ;
}

-->
</script>

<div id="body">
<div id="reg">
<?= $error; ?><?=$this->validation->error_string; ?>
		<div id="input_info">
		  <?php 
			echo form_open_multipart('user_control/do_upload_with_file', array('name'=>'upload-form', 'id'=>'upload-form'), array('MAX_FILE_SIZE'=>'2000000', 'subject'=>$subject, 'type'=>'file', 'location'=>'server'));
		?>
<label for="file" style="color:#FFEA00; font-size:15px;">FILE: </label><input type="file" name="userfile" size="20" />
		</div>

		
		<table id="reg_table" cellpadding="5px" cellspacing="0" border="0"">

		<tr>
			<td align="left"><label for="title" style="color:#FFFFFF;">Title: </label></td>
			<td align ="center"><?= form_input(array('id'=>'title', 'name'=>'title' , 'class'=>'text', 'size'=>20, 'maxlength'=>50)); ?></td>
		</tr>

		<tr>
			<td align="left"><label for="author" style="color:#FFFFFF;">Author: </label></td>
			<td align ="center"><?= form_input(array('id'=>'author', 'name'=>'author' , 'class'=>'text', 'size'=>20, 'maxlength'=>50)); ?></td>
		</tr>

		<tr>
			<td colspan=1><?= form_reset('reset', 'Reset Fields'); ?></td><td><input type="submit" value="upload" /></td>
		</tr>
		</table>
	</FORM>
            
 	   </div><div class="clear"> </div>
